package org.mics.sitemsg.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Where;
import org.mics.jpa.entity.BaseEntity;
import org.mics.sitemsg.enums.SiteMsgState;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 站内信
 * @author mics
 * @date 2021-11-8
 * @version  1.0
 */
@Data
@Entity
@Table(name = "t_site_msg")
@Where(clause = "bln_del = 0")
@EqualsAndHashCode(callSuper = false)
public class SiteMsgDO extends BaseEntity{
	
    @Column(name = "title", columnDefinition = "varchar(64) COMMENT '标题'",nullable = false)
	private String title;
	
    @Column(name = "content", columnDefinition = "text COMMENT '内容'",nullable = false)
	private String content;
	
    @Column(name = "state", columnDefinition = "int(11) COMMENT '站内信状态'")
    private SiteMsgState state;
    
    @Column(name = "jump_url", columnDefinition = "varchar(255) COMMENT '链接地址'")
    private String jumpUrl;
        
    @Column(name = "receive_user_id", columnDefinition = "varchar(32) COMMENT '接收人id'",nullable = false)
    private String receiveUserId;


}
